const utils = {
	
    mockopen :0, 
	mockLoopCount :1,
	myRequest(option) {
			
		if (this.mockopen==1)	 {
			let dataMock = [];
			let _json_field = mockApi[option.mockmethed];
			for (var i = 0; i < this.mockLoopCount; i++) {
 
				dataMock.push(Mock.mock(_json_field));				
			}
			return  dataMock;
			
		} else{
			 
				var result = axios({
					method: option.method || 'POST',
					url: option.fullurl ||  option.url,
					data: option.data,
					header: {
						'Content-Type': 'application/x-www-form-urlencoded',
					},
				}).then(resp => {
					return resp.data;
				}).catch(error => {
					return "exception=" + error;
				});
				return result;
				
		}
		 
	
	} 

}

 